package cn.fz;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;


@ServletComponentScan  // 开启对Servlet组件的支持
@SpringBootApplication //等价下面三个注解之和
/**
 * @SpringBootConfiguration:
 *      等价于@Configuration--用来声明配置类
 * @EnableAutoConfiguration: 开启自动配置
 *      @Import({AutoConfigurationImportSelector.class})
 * @ComponentScan：扫描组件的注解，默认扫描启动类所在包及其子包
 */
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
